package engine.core
{
	import engine.asset.*;
	
	public class RxClientVars
	{
		private static var s_strings:Array = new Array();
		private static var s_numbers:Array = new Array();
		private static var s_integers:Array = new Array();
		
		public function RxClientVars()
		{
		}
		
		public static function GetNumber(str:String) : Number
		{
			return s_numbers[str];
		}
		
		public static function GetInt(param1:String) : int
		{
			return s_integers[param1];
		}
		
		public static function Parse(param1:String) : void
		{
			var _loc_4:XML = null;
			var _loc_5:String = null;
			var _loc_6:Number = NaN;
			var _loc_7:int = 0;
			var _loc_8:String = null;
			var _loc_9:XML = null;
			var _loc_10:XML = null;
			var _loc_11:XML = null;
			var _loc_2:RxAssetXML = RxAssetXML.GetByURL(param1);
			if (_loc_2 == null)
			{
				return;
			}
			var _loc_3:* = _loc_2.GetXML();
			if (_loc_3 == null)
			{
	
			}
			for each (_loc_4 in _loc_3.svar)
			{
				
				for each (_loc_9 in _loc_4.@*)
				{
					
					_loc_5 = _loc_9.name();
					_loc_8 = _loc_4.attribute(_loc_5);
					s_strings[_loc_5] = _loc_8;
				}
			}
			for each (_loc_4 in _loc_3.nvar)
			{
				
				for each (_loc_10 in _loc_4.@*)
				{
					
					_loc_5 = _loc_10.name();
					_loc_6 = _loc_4.attribute(_loc_5);
					s_numbers[_loc_5] = _loc_6;
				}
			}
			for each (_loc_4 in _loc_3.ivar)
			{
				
				for each (_loc_11 in _loc_4.@*)
				{
					
					_loc_5 = _loc_11.name();
					_loc_7 = _loc_4.attribute(_loc_5);
					s_integers[_loc_5] = _loc_7;
				}
			}
		}
		
		public static function IntExists(param1:String) : Boolean
		{
			if (param1 in s_integers)
			{
				return true;
			}
			return false;
		}
		
		public static function GetString(param1:String) : String
		{
			return s_strings[param1];
		}
		
		public static function StringExists(param1:String) : Boolean
		{
			if (param1 in s_strings)
			{
				return true;
			}
			return false;
		}
		
		public static function SetNumber(param1:String, param2:Number) : void
		{
			s_numbers[param1] = param2;
		}
		
		public static function SetInt(param1:String, param2:int) : void
		{
			s_integers[param1] = param2;
		}
		
		public static function SetString(param1:String, param2:String) : void
		{
			s_strings[param1] = param2;
		}
		
		public static function NumberExists(param1:String) : Boolean
		{
			if (param1 in s_numbers)
			{
				return true;
			}
			return false;
		}
	}
}